package factory.abstractFactory;import factory.abstractFactory.NewPizza;/** * Created by Administrator on 2018-10-22. * 构建新的CheesePizza */public class CheesePizza extends NewPizza {    PizzaIngredientFactory pizzaIngredientFactory;    public CheesePizza(PizzaIngredientFactory pizzaIngredientFactory){        this.pizzaIngredientFactory = pizzaIngredientFactory;    }     void prepare() {         System.out.println("preparing" + name);         dough = pizzaIngredientFactory.createDough();         sauce = pizzaIngredientFactory.cracteSauce();         cheese =pizzaIngredientFactory.createCheese();    }}